# items.py
import scrapy

class StockItem(scrapy.Item):
    code = scrapy.Field()  # 股票代码
    name = scrapy.Field()  # 股票名称
    related_links = scrapy.Field()  # 相关链接
    latest_price = scrapy.Field()  # 最新价格
    price_change_percentage = scrapy.Field()  # 涨跌幅（百分比）
    price_change_amount = scrapy.Field()  # 涨跌额
    volume_hands = scrapy.Field()  # 成交量（手）
    turnover_amount = scrapy.Field()  # 成交金额（亿元）
    amplitude = scrapy.Field()  # 振幅
    highest = scrapy.Field()  # 最高
    lowest = scrapy.Field()  # 最低
    opening_price = scrapy.Field()  # 开盘价
    previous_close_price = scrapy.Field()  # 昨收价
    turnover_rate = scrapy.Field()  # 换手率
    dynamic_pe_ratio = scrapy.Field()  # 动态市盈率
    pb_ratio = scrapy.Field()  # 市净率